<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--关闭业务单</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<%@ include file="/comm.jsp"%>
	<script>
		$(document).ready(function() {
			$("form *").autohelp("#autohelp");
		});
	</script>
	<script language="JavaScript">
	function checkSubmit(){
		return false;
	}
	
	function operChange(showflag){
		if(showflag==true)
			$d("tr_remark").style.display="block";
		else
			$d("tr_remark").style.display="none";
	}
</script>
	<link rel="stylesheet"
		href="http://a.tbcdn.cn/apps/sell/1.0/publish_detail_ke.css?t=20110128editor.css" />

	<body leftmargin="0" topmargin="0" marginheight="0">
		<%@ include file="/messages.jsp"%>
		<s:form name="formpage" action="busiInfo_close" namespace="/seal">
		<s:hidden name="busiInfo.busiNo" value="%{#request.busiInfo.busiNo}"/>
			<table width="830" border="0">
				<!-- 发货方关闭业务单 -->
				<s:if test="#request.busiInfo.sendUserid==#request.userId">
					<tr>
						<td colspan="2">
							<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭业务单
							</strong>
						</td>
					</tr>
					<tr>
						<s:if test='#request.busiInfo.status=="01"'>
							<td align="right" valign="top" width="124" rowspan="3">
								原&nbsp;&nbsp;&nbsp;因：
							</td>
						</s:if>
						<s:else>
							<td align="right" valign="top" width="124" rowspan="2">
								原&nbsp;&nbsp;&nbsp;因：
							</td>
						</s:else>
						<td>
							<input type="radio" value="20" name="busiOper.operCode" onclick="operChange(false);"/>
							货物返回，关闭交付
						</td>
					</tr>
					<s:if test='#request.busiInfo.status=="01"'>
					<tr>
						<td>
							<input type="radio" value="21" name="busiOper.operCode" onclick="operChange(false);"/>
							信处录入错误，关闭重新创建<font color="gray">此操作可重新激活封条</font>
						</td>
					</tr>
					</s:if>
					<tr>
						<td>
							<input type="radio" value="29" name="busiOper.operCode" onclick="operChange(true);"/>
							其他
						</td>
					</tr>
				</s:if>

				<!-- 收货方结束业务单 -->
				<s:if test="#request.busiInfo.recvUserid==#request.userId">
					<tr>
						<td colspan="2">
							<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;结束业务单
							</strong>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" width="124" rowspan="2">
							原&nbsp;&nbsp;&nbsp;因：
						</td>
						<td>
							<input type="radio" value="30" name="busiOper.operCode" onclick="operChange(false);"/>
							收到货物，封条不存在
						</td>
					</tr>
					<tr>
						<td>
							<input type="radio" value="39" name="busiOper.operCode" onclick="operChange(true);"/>
							其他
						</td>
					</tr>
				</s:if>

				<tr id="tr_remark" style="display: none">
					<td align="right" valign="top">
						<label for="operInfo">
							备&nbsp;&nbsp;&nbsp;注：
						</label>
					</td>
					<td>
						<textarea id="operInfo" name="busiOper.operInfo" rows="5" cols="59">${busiOper.operInfo }</textarea>
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<input type="submit" class="button" id="save" value=" 保 存 " />
						<input type="button" class="button" id="back" value=" 返 回 "
							onclick="javascript:history.go(-1)" />
					</td>
				</tr>
			</table>
			<%@ include file="viewBusiness.jsp"%>
		</s:form>
	</body>
</html>